package com.xxx.car.service;

import com.github.pagehelper.Page;
import com.xxx.car.entity.vo.request.ReqCouponQuery;
import com.xxx.car.entity.vo.request.ReqCouponTpl;
import com.xxx.car.entity.vo.request.ReqCouponTplQueryForAdmin;
import com.xxx.car.entity.vo.response.RespCoupon;
import com.xxx.car.entity.vo.response.RespCouponTpl;

import java.util.List;

/**
 * Created by wenjiexu on 2017/6/19.
 */
public interface CouponService {
    void refreshStatus(Integer userId);

    List<RespCoupon> query(ReqCouponQuery query);

    Integer queryUserCouponCount(Integer userId);

    Page<RespCouponTpl> queryCouponTpl(ReqCouponTplQueryForAdmin reqCouponTplQueryForAdmin);

    void genCoupon(ReqCouponTpl reqCouponTpl);

    void exchangeCoupon(Integer userId, String couponTicket);

    void useCoupon(Integer userId, Integer couponId);
}
